import Loading from './loading.vue'

const Login = {
  install (Vue) {
    const LoadingClass = Vue.extend(Loading)
    const loadingvm = new LoadingClass()
    Vue.prototype.$showLoading = () => {
      document.body.appendChild(loadingvm.$mount().$el)
      loadingvm.isShow = true
    }
    Vue.prototype.$hideLoading = () => {
      loadingvm.isShow = false
    }
  }
}
export default Login
